home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / xcmd / xcmdmens.sit / xcmd-menus.sit / Menus For HyperCard™ / card_5722.txt < prev    next >
Text File  |  1989-07-14  |  889b  |  32 lines

  1. -- card: 5722 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2721
  5. -- name: ChangeMenu
  6.  
  7.  
  8. -- part contents for background part 20
  9. ----- text -----
  10. 7
  11.  
  12. -- part contents for background part 1
  13. ----- text -----
  14. XCMD
  15.  
  16. -- part contents for background part 13
  17. ----- text -----
  18. ChangeMenu is an XCMD that lets you change the names of items in menus you've created using the NewMenu XFCN.  For example:
  19.  
  20.   ChangeMenu myMenu, 2, "Go to Address"
  21.  
  22. Will change the second menu item in menu "myMenu" to read "Go To Address".  If the original item was disabled or checked, the changed item will be also.  
  23.  
  24. You can not change the title of a menu, only the items in the menu itself.
  25.  
  26. The menu number you provide to to ChangeMenu should be the same number that was returned by NewMenu.
  27.  
  28.  
  29.  
  30. -- part contents for background part 22
  31. ----- text -----
  32. ChangeMenu menuNumber, itemNumber, "Item"